package com.sailfish.springbootdemo.service.db2.impl;

import com.sailfish.springbootdemo.dao.db2.PcbCapacityParamVersionDao;
import com.sailfish.springbootdemo.pojo.db2.PcbCapacityParamVersion;
import com.sailfish.springbootdemo.service.db2.PcbCapacityParamVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class PcbCapacityParamVersionServiceImpl implements PcbCapacityParamVersionService {

    @Autowired
    PcbCapacityParamVersionDao pcbCapacityParamVersionDao;

    @Override
    public PcbCapacityParamVersion getNewest(Integer versionType) {
        return pcbCapacityParamVersionDao.getNewest(versionType);
    }

    @Override
    public PcbCapacityParamVersion getNewestByVersionYear(Integer versionType, String versionYear) {
        return pcbCapacityParamVersionDao.getNewestByVersionYear(versionYear, versionType);
    }
}
